<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>客户详情</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <link rel="stylesheet" href="/css/bootstrapValidator.min.css" />
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css"/>
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css"/>
    <link rel="stylesheet" href="/css/skin.css"/>
    <link rel="stylesheet" href="/css/contractManager/user/contractForm.css" type="text/css"/>
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-multiselect.css" type="text/css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <style>
        .bv-form .help-block {
            position: absolute;
            background: #fff;
        }
    </style>
</head>
<body>
<div class="container-fluid">
    <div class="card">
        <ul class="nav nav-tabs tabs-lg" role="tablist">
            <li class="active" onclick="contactsTableInit()"><a href="#contactList" aria-controls="" role="tab" data-toggle="tab" aria-expanded="false">联系人</a></li>
            <li class="" onclick="followUpRecordTableInit()"><a href="#followUpRecord" aria-controls="" role="tab" data-toggle="tab" aria-expanded="false">跟进记录</a></li>
            <li class="" onclick="visitRecordTableInit()"><a href="#visitRecord" aria-controls="" role="tab" data-toggle="tab" aria-expanded="false">拜访记录</a></li>
            <li class="" onclick="singleContractOrderTableInit()"><a href="#singleContractOrder" aria-controls="" role="tab" data-toggle="tab" aria-expanded="false">合同订单</a></li>
        </ul>
        <div class="tab-content" style="padding-top: 24px;">
            <input type="hidden" id="singleProductCustomerId" th:value="${singleProductCustomerId}">
            <input type="hidden" id="customerId" th:value="${customerId}">
            <div role="tabpanel" id="contactList" class="tab-pane active">
                <div class="well form-well">
                    <h3>联系人</h3>
                    <p>
                        <button type="button" class="btn btn-success btn-label" onclick="addSingleProductCustomerContact()">
                            <label><i class="mdi mdi-plus"></i></label>新增联系人</button>
                    </p>
                    <table id="contactsTableList"></table>
                </div>
            </div>
            <!-- 跟进记录 -->
            <div role="tabpanel" id="followUpRecord" class="tab-pane">
                <div class="well form-well">
                    <h3>跟进记录</h3>
                    <table id="followUpRecordTableList"></table>
                </div>
            </div>
            <!-- 拜访记录 -->
            <div role="tabpanel" id="visitRecord" class="tab-pane">
                <div class="well form-well">
                    <h3>拜访记录</h3>
                    <table id="visitRecordTableList"></table>
                </div>
            </div>
            <!-- 合同订单 -->
            <div role="tabpanel" id="singleContractOrder" class="tab-pane">
                <div class="well form-well">
                    <h3>合同订单</h3>
                    <table id="contractOrderTableList"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 新增联系人 -->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" id="addModel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4 class="modal-title">新增联系人</h4>
            </div>
            <div class="modal-body" style="min-height: 200px;">
                <form id="addContactForm" class="well form-well" autocomplete="off">
                    <div class="row">
                        <div class="col-xs-4">
                            <label class="control-label label-required">联系人姓名</label>
                            <div class="form-group">
                                <input name="contactNameAdd" id="contactNameAdd" type="text" class="form-control" placeholder="请输入联系人姓名">
                            </div>
                        </div>
                        <div class="col-xs-4">
                            <label class="control-label label-required">联系方式</label>
                            <div class="form-group">
                                <input name="contactInformationAdd" maxlength="20" id="contactInformationAdd" type="text" class="form-control"
                                       placeholder="请输入联系方式">
                            </div>
                        </div>
                        <div class="col-xs-4">
                            <label class="control-label label-required">职务</label>
                            <div class="form-group">
                                <select name="contactPositionAdd" class="form-control" id="contactPositionAdd" type="text" title="请选择">
                                    <option value="0">公司管理</option>
                                    <option value="1">财务</option>
                                    <option value="2">人力</option>
                                    <option value="3">其他</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-4">
                            <label class="control-label">职务状态</label>
                            <div class="form-group">
                                <select name="" class="form-control" id="isSeniorExecutive" type="text" title="请选择">
                                    <option value="0">高管</option>
                                    <option value="1">非高管</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-4">
                            <label class="control-label">在职情况</label>
                            <div class="form-group">
                                <select name="" class="form-control" id="onTheJobSituationAdd" type="text" title="请选择">
                                    <option value="0">在职</option>
                                    <option value="1">离职</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-4">
                            <label class="control-label">微信</label>
                            <div class="form-group">
                                <input name="" maxlength="50" type="text" id="weChatAdd" class="form-control" placeholder="请输入微信">
                            </div>
                        </div>
                        <div class="col-xs-4">
                            <label class="control-label">邮箱</label>
                            <div class="form-group">
                                <input name="" maxlength="50" id="mailBoxAdd" type="text" class="form-control"
                                       placeholder="请输入邮箱">
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" onclick="saveSingleProductCustomerContact();">保存</button>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/bootstrapValidator.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/crm/common/common.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<script src="/js/crm/customerManager/user/userSingleProductCustomerDetail.js"></script>
</html>